package org.unideb.beerfactory.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.unideb.beerfactory.dto.ComponentDTO;
import org.unideb.beerfactory.entity.Component;

@Repository
public interface ComponentDao extends PagingAndSortingRepository<Component, Long>,
        BaseConvertDao<Component, ComponentDTO> {

    List<Component> findByRecipeId(Long recipeId);
}
